<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Bootstrap 实例 - 水平表单</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
    form{
        width: 500px;
    }
</style>
</head>
<body>

<form class="form-horizontal" role="form" action="{:url('/addData')}" method="post" enctype="multipart/form-data">
    <div class="form-group">
        <label for="firstname" class="col-sm-2 control-label">分类名称</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="firstname" name="name">
        </div>
    </div>
    <div class="form-group">
        <label for="lastname" class="col-sm-2 control-label">上级分类</label>
        <div class="col-sm-10">
<!--            <select class="form-control" id="lastname" name="cate_id">-->
<!--                <option value="作为顶级分类">作为顶级分类</option>-->
<!--            </select>-->
        </div>
    </div>
    <div class="form-group">
        <label for="firstname" class="col-sm-2 control-label">排序</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="firstname" name="sort">
        </div>
    </div>
    <div class="form-group">
        <label for="lastname" class="col-sm-2 control-label">是否热门</label>
        <div class="col-sm-10">
            <input type="radio" name="hot" value="是"> 是
            <input type="radio" name="hot" value="否"> 否
        </div>
    </div>
    <div class="form-group">
        <label for="lastname" class="col-sm-2 control-label">是否显示</label>
        <div class="col-sm-10">
            <input type="radio" name="show" value="是"> 是
            <input type="radio" name="show" value="否"> 否
        </div>
    </div>
    <div class="form-group">
        <label for="firstname" class="col-sm-2 control-label">分类logo</label>
        <div class="col-sm-10">
            <input type="file" class="form-control" id="firstname" name="file">
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">提交</button>
        </div>
    </div>
</form>

</body>
</html>